<?php
$form = $this->beginWidget('CActiveForm', array(
    'action' => Yii::app()->createUrl($this->route),
    'method' => 'get',
));
?>

<p>
    <?php echo $form->label($model, 'title'); ?>
    <?php echo $form->textField($model, 'title', array('size' => 60, 'maxlength' => 255)); ?>
</p>

<p>
    <?php echo $form->label($model, 'create_date'); ?>
<?php
    $this->widget('zii.widgets.jui.CJuiDatePicker', array(
    'model' => $model,
    'attribute' => 'create_date',
    'options' => array(
        'dateFormat' => 'yy-mm-dd',
        'minDate' => '2011-1-1',
        'showAnim' => 'fold',
    ),
    'htmlOptions' => array(
    ),
));
    ?>
</p>

<p>
    <?php echo $form->label($model, 'modify_date'); ?>
<?php
    $this->widget('zii.widgets.jui.CJuiDatePicker', array(
    'model' => $model,
    'attribute' => 'modify_date',
    'options' => array(
        'dateFormat' => 'yy-mm-dd',
        'minDate' => '2011-1-1',
        'showAnim' => 'fold',
    ),
    'htmlOptions' => array(
    ),
));
    ?>
</p>

<p>
    <?php echo $form->label($model, 'due_date'); ?>
<?php
    $this->widget('zii.widgets.jui.CJuiDatePicker', array(
    'model' => $model,
    'attribute' => 'due_date',
    'options' => array(
        'dateFormat' => 'yy-mm-dd',
        'minDate' => '2011-1-1',
        'showAnim' => 'fold',
    ),
    'htmlOptions' => array(
    ),
));
    ?>
</p>

<p>
    <?php echo $form->label($model, 'complete_date'); ?>
<?php
    $this->widget('zii.widgets.jui.CJuiDatePicker', array(
    'model' => $model,
    'attribute' => 'complete_date',
    'options' => array(
        'dateFormat' => 'yy-mm-dd',
        'minDate' => '2011-1-1',
        'showAnim' => 'fold',
    ),
    'htmlOptions' => array(
    ),
));
    ?>
</p>

<p>
    <?php echo $form->label($model, 'todo_list_id'); ?>
    <?php echo $form->dropDownList($model, 'todo_list_id', CHtml::listData(Yii::app()->user->model->todoLists, 'id', 'name'), array('prompt' => 'select todo list',)); ?>
</p>

<div class="action">
    <?php echo CHtml::submitButton('Search'); ?>
</div>

<?php $this->endWidget(); ?>